from concurrent.futures import ThreadPoolExecutor
from missav.test_redis import RedisConn
r = RedisConn()
def down_video(url_t):
   for i in range(3):
       try:
           from missav.get_m3u8_3 import down
           print("movie_url", url_t)
           down(url_t)
       except Exception as e:
           print("down video \t", e)
           continue
       else:
           print("下载完成 down_video")
           break
if __name__ == '__main__':

    # with concurrent.futures.ThreadPoolExecutor(max_workers=5) as executor:
    #     executor.map(down_video, url_list_movie)
    import psutil
    # 下载单个电影
    # 来福大酒店
    # down_video("https://www.fofoyy.com/dianying/102110")
    # 抓娃娃
    # down_video("https://www.fofoyy.com/dianying/103173")
    # # 走走停停
    # down_video("https://www.fofoyy.com/dianying/102103")
    # # # 星球崛起
    # down_video("https://www.fofoyy.com/dianying/103032")
    # # 犯罪都市4
    # down_video("https://www.fofoyy.com/dianying/102860")
    # # 彩虹线
    # down_video("https://www.fofoyy.com/dianying/102875")
    # 守龙者
    # down_video("https://www.fofoyy.com/dianying/103538")
    # 醉后一拳
    # down_video("https://www.fofoyy.com/dianying/103501")
    import os
    os.system("set ALL_PROXY=socks5://127.0.0.1:7897")
    down_video("https://www.fofoyy.com/dianying/38678")


    #     电视剧
    #     梦想城
    # https://www.fofoyy.com/dianshiju/103051
    # down_video("https://www.fofoyy.com/dianshiju/103051")
    # down_video("https://www.fofoyy.com/dianshiju/94283")
    # 大唐
    # down_video("https://www.fofoyy.com/dianshiju/103247")
    # down_video("https://www.fofoyy.com/dianshiju/102648")
    # down_video("https://www.fofoyy.com/dianshiju/102183")
    # down_video("https://www.fofoyy.com/dianying/101414")
    # s1 = "https://www.fofoyy.com/dianying/103654"
    # down_video("https://www.fofoyy.com/dianying/103654")
    #  小夫妻
    # down_video("https://www.fofoyy.com/dianshiju/103466")
    # 唐人街探案
    # down_video("https://www.fofoyy.com/dianshiju/100524")
    # 寻龙迷棺
    # down_video("https://www.fofoyy.com/dianying/103296")
    # down_video("https://www.fofoyy.com/dianying/103327")
    # down_video("https://www.fofoyy.com/dianying/103103")
    # down_video("https://www.fofoyy.com/dianying/102601")
    # down_video("https://www.fofoyy.com/dianying/104204")
    # down_video("https://www.fofoyy.com/dianshiju/88555") # 背叛
    # down_video("https://www.fofoyy.com/dianying/33334") # 情迷维纳斯
    # down_video("https://www.fofoyy.com/dianying/32776") # 激情加布里拉 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/2158")  # 欢愉 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/62331")  # 巴黎Q娘 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/894")  # 交替伴侣 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/28338")  # 露露会说话的屁眼 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/33321")  # 活色生香 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/55754")  # 反基督者 https://www.fofoyy.com/dianying/3033

    # down_video("https://www.fofoyy.com/dianying/3033") # 情迷维纳斯 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/35941") # 危情瘾难耐 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/20238") # 赤裸裸的滑稽故事 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/46235") # 赤裸裸的罪恶 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/37307") # 美女与骑士 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/49948") # 花芯 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/49951") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/105786") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/108225") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dongman/101480") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/103346") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dongman/106912") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dongman/106670") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/107627") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/108122") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianshiju/107350") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/108459") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/107947") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/103573") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianshiju/102686") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/103912") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/105826") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/100550") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/107948") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/107883") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/107678") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/106903") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/107531") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianshiju/108399") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/106020") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/105791") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/90838") # 珍品 https://www.fofoyy.com/dianying/3033
    # # down_video("https://www.fofoyy.com/dianying/90839") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianshiju/27865") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/108124") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/108635") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/108748") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/100129") # 珍品 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/49553") # 苦月亮 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/47919") # 温柔地杀我 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/44416") # 恶灵春梦 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/10541") # 性之剧毒 https://www.fofoyy.com/dianying/3033
    # down_video("https://www.fofoyy.com/dianying/48285") # 偷窥狂人 https://www.fofoyy.com/dianying/3033







